package com.yisu.auction.api.domain.vo.PrizePackageVos;


import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * author: 黄萧林
 * Business Description：
 * createTime：2017/8/20
 */
public class HistoricalTendencyVo {

    private BigDecimal transactionPrice;
    private String createDate;
    private String memberName;
    private BigDecimal contrastPrize;
    private Integer term;
    private BigDecimal averagePrice;

    public BigDecimal getTransactionPrice() {
        if(transactionPrice==null)
            return BigDecimal.valueOf(0);
        return transactionPrice;
    }

    public void setTransactionPrice(BigDecimal transactionPrice) {
        this.transactionPrice = transactionPrice;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.createDate = simpleDateFormat.format(createDate);
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }

    public BigDecimal getContrastPrize() {
        return contrastPrize;
    }

    public void setContrastPrize(BigDecimal contrastPrize) {
        this.contrastPrize = contrastPrize;
    }

    public BigDecimal getAveragePrice() {
        return averagePrice;
    }

    public void setAveragePrice(BigDecimal averagePrice) {
        this.averagePrice = averagePrice;
    }

    @Override
    public String toString() {
        return "HistoricalTendencyVo{" +
                "transactionPrice=" + transactionPrice +
                ", createDate='" + createDate + '\'' +
                ", memberName='" + memberName + '\'' +
                ", contrastPrize=" + contrastPrize +
                ", term=" + term +
                ", averagePrice=" + averagePrice +
                '}';
    }
}
